﻿@using MyAspNetCoreTodo.Dtos
@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@model TodoItemDto

@{
    ViewData["Title"] = "test";
}
<form asp-action="AddItem" method="POST">
    <span asp-validation-for="Title" class="text-danger"></span> <!-- 显示错误信息 -->

    <label asp-for="Title">添加新事件</label>
    <input asp-for="Title">
    <button type="submit">Add</button>
</form>